import java.util.*;

public class Test36 {









    public static void main01(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] dp = new int[10];

        int n = in.nextInt();
        int ret = 0;
        while (n != 0) {
            ret = n % 10 ;
            if(dp[ret] == 0) System.out.print(ret);
            dp[ret]++;
            n /= 10 ;
        }
    }
}
